package com.sevenwolves.bean;

public class User implements java.io.Serializable {

	// Fields

	private Integer userid;
	private String username;
	private String password;
//	private Role roles;
	private Integer userlevel;
	private String identity;
	private String fullname;
	private String gender;
	private String address;
	private String phone;
	private String position;

	public User() {
		// default constructor
	}
	

//	public User(String username, String password, String identity,
//			String fullname, String gender, String address, String phone,
//			String position) {
//		this.username = username;
//		this.password = password;
//		this.identity = identity;
//		this.fullname = fullname;
//		this.gender = gender;
//		this.address = address;
//		this.phone = phone;
//		this.position = position;
//	}
//
//	public User(Integer userid, Role roses, String username, String password,
//			String identity, String fullname, String gender, String address,
//			String phone, String position) {
//		this.userid = userid;
//		this.roles = roses;
//		this.username = username;
//		this.password = password;
//		this.identity = identity;
//		this.fullname = fullname;
//		this.gender = gender;
//		this.address = address;
//		this.phone = phone;
//		this.position = position;
//	}

	// Property accessors

	public User(String username, String password, Integer userlevel,
			String identity, String fullname, String gender, String address,
			String phone, String position) {
	
		this.username = username;
		this.password = password;
		this.userlevel = userlevel;
		this.identity = identity;
		this.fullname = fullname;
		this.gender = gender;
		this.address = address;
		this.phone = phone;
		this.position = position;
	}

	

	public User(Integer userid, String username, String password,
			Integer userlevel, String identity, String fullname, String gender,
			String address, String phone, String position) {
		
		this.userid = userid;
		this.username = username;
		this.password = password;
		this.userlevel = userlevel;
		this.identity = identity;
		this.fullname = fullname;
		this.gender = gender;
		this.address = address;
		this.phone = phone;
		this.position = position;
	}


	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

//	public Role getRoles() {
//		return roles;
//	}
//
//	public void setRoles(Role roles) {
//		this.roles = roles;
//	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getUserlevel() {
		return userlevel;
	}

	public void setUserlevel(Integer userlevel) {
		this.userlevel = userlevel;
	}

	public String getIdentity() {
		return this.identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public String getFullname() {
		return this.fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public String getGender() {
		return this.gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

}